﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class GUI_Pages_ParentRegistration3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }


    protected void submitbutton_Click(object sender, EventArgs e)
    {

        string connStr = ConfigurationManager.ConnectionStrings["CSConn"].ToString();
        SqlConnection conn = new SqlConnection(connStr);

        SqlCommand cmd1 = new SqlCommand("Registration_Auth", conn);
        cmd1.CommandType = CommandType.StoredProcedure;

        int acctID = (int)(Session["accID"]);

        cmd1.Parameters.Add(new SqlParameter("@acctID", acctID));
        cmd1.Parameters.Add(new SqlParameter("@user_name", TextBox4.Text));
        cmd1.Parameters.Add(new SqlParameter("@pass_word", TextBox2.Text));

        conn.Open();
        cmd1.ExecuteNonQuery();
        conn.Close();


        Response.Redirect("http://www.cairositters.com/GUI/Pages/ParentRegistrationSuccessful.aspx");
    }

    
}